﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Sprout.Repository
{
    /// <summary>
    /// 查询特性标识
    /// </summary>
    public class SelectAttribute : RepositoryActionAttribute
    {
        /// <summary>
        /// 获取总数SQL
        /// </summary>
        public string CountSql { get; set; }
        /// <summary>
        /// 获取总数XML节点ID
        /// </summary>
        public string CountStatementId { get; set; }

        /// <summary>
        /// 只有第一页时才获取总数
        /// </summary>
        public bool CountOnlyFirst { get; set; } = false;
    }
}
